﻿using UnityEngine;

[RequireComponent(typeof(Rigidbody2D))]

public class Sting : MonoBehaviour
{
    private void OnTriggerEnter2D(Collider2D collision)
    {
        Character player = collision.GetComponent<Character>();
        if (player != null)
        {
            player.Die();
        }
    }
}
